/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/15 下午4:15
 * LastModified: 2020/03/15 16:15:15
 */

package com.qolome.knowledge.design.pattern.strategy.demo.pay;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月15日 16:15:38
 */
@Slf4j
public class Test {

    public static void main(String[] args) {
        Order order = new Order("qolome","2020031516340005",new BigDecimal("1000"));

        log.info("支付结果:{}",order.pay());
        log.info("支付结果:{}",order.pay(PayStrategy.JD_PAY));
        log.info("支付结果:{}",order.pay(PayStrategy.UNION_PAY));
    }
}
